import { ObservationWriter } from "../ObservationWriter";
import { ReflectionSensorBase, ReflectionSensorInfo } from "./ReflectionSensorBase";

export class NumberReflectionSensor extends ReflectionSensorBase {

    constructor(reflectionSensorInfo: ReflectionSensorInfo) {
        super(reflectionSensorInfo, 1);
    }

    override writeReflectedField(writer: ObservationWriter): void {
        const numberVal = this.getReflectionValue();
        writer.setItem(0, numberVal)
    }

}